<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" session="false"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	
	<% 
		//
		HttpSession session = request.getSession(true); 
		out.print(session.getId());
		
		out.print("<br>");
		session.setMaxInactiveInterval(60);
		out.print(session.getMaxInactiveInterval());
		
		//使当前的 HttpSession 对象失效. 
		//session.invalidate();
	%> 
	
</body>
</html>